.image-upscale-left-content {
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  gap: 10px;
  display: flex;
  flex-direction: column;
  color: #a4b2c1;
  font-weight: 600;
  // max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  box-sizing: border-box;
  transition: 0.3s;

  .image-container-wapper {
    align-items: center;
    justify-content: center;
    display: flex;
    gap: 20px;
    flex-direction: row;
    box-sizing: border-box;
  }

  .upload-image-container {
    float: left;
    background-color: #a4b2c123;
    box-sizing: border-box;
    width: 300px;
    max-width: 90vw;
    height: 250px;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    user-select: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 20px;
    opacity: 0.85;
    animation: upload-image-container-anim 1s ease-in-out forwards;
    &:hover {
      opacity: 1;
    }
    .icon {
      width: 80px;
      height: 80px;
    }
    .upload-btn {
      width: fit-content;
      white-space: nowrap;
      background-color: #6b3c8f;
      height: 40px;
      line-height: 40px;
      border-radius: 20px;
      font-size: 18px;
      margin-bottom: 20px;
      padding: 0 20px;
      transition: 0.3s;
      &:hover {
        background-color: #7c4a9e;
      }
    }
    p {
      font-size: 14px;
      font-weight: 300;
      margin-bottom: 5px;
    }
    .p-link {
      color: #71a5dd;
      transition: 0.3s;
      &:hover {
        text-decoration: underline;
        color: #9956c6;
      }
    }
  }
  @keyframes upload-image-container-anim {
    0% {
      transform: translateY(60px);
      opacity: 0.4;
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .progress {
    width: 800px;
    height: 15px;
    background-color: #657a9148;
    border-radius: 10px;
    overflow: hidden;
    --progress-width: 800px;
    .progress-bar {
      height: 100%;
      background-color: #71a5dd;
      transition: 0.3s;
      position: relative;
      overflow: hidden;
      .back-color {
        width: var(--progress-width);
        position: absolute;
        height: 100%;
        background: linear-gradient(to right, #995faa, #2c79cb);
        top: 0;
        left: 0;
      }
    }
  }
  .image-container {
    --adapt-width: calc(calc(100vw - 420px) / 2);
    width: var(--adapt-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    user-select: none;
    transition: opacity 0.6s;
    .image {
      --adapt-width: calc(calc(100vw - 420px) / 2);
      --adapt-height: calc(calc(100vh - 400px));
      width: var(--adapt-width);
      height: var(--adapt-height);
      cursor: pointer;
      object-fit: contain;
      image-rendering: pixelated;
    }
  }
  .image-container,
  .image-compare-container {
    .container-title {
      font-size: 23px;
      font-weight: 600;
      color: #657a91;
      white-space: nowrap;
    }

    .tips {
      font-weight: 400;
      font-size: 14px;
      color: #657a91;
      user-select: text;
      padding: 5px;
      p {
        white-space: nowrap;
        text-align: center;
        .tips-link {
          display: inline;
          margin-left: 10px;
          color: #71a5dd;
          transition: 0.3s;
        }
      }
      &::selection {
        color: #fff;
        background-color: #657a91;
      }
    }

    .tool-btns {
      height: 50px;
      display: flex;
      gap: 10px;

      button {
        width: 100px;
        height: 40px;
        border-radius: 10px;
        border: none;
        background-color: #a4b2c123;
        color: #a4b2c1;
        font-weight: 600;
        transition: all 0.3s ease-in-out;
        &:hover {
          transform: scale(1.04);
          background-color: #657a9148;
        }
        &:active {
          transform: scale(0.96);
        }
      }
    }
  }
  .image-compare-container {
    // --adapt-width: calc(calc(100vw - 500px));
    // --adapt-height: calc(calc(100vh - 350px));
    // --min-adapt: min(var(--adapt-width), var(--adapt-height));

    transition: transform 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    user-select: none;
    .box {
      --adapt-width: calc(calc(100vw - 500px));
      --adapt-height: calc(calc(100vh - 350px));
      // --min-adapt: min(var(--adapt-width), var(--adapt-height));
      width: var(--min-width);
      height: var(--min-height);
      background-color: #657a9148;
      overflow: hidden;
    }
  }
}
@media screen and (max-width: 1500px) {
  .image-upscale-left-content {
    display: block;
    .image-container-wapper {
      flex-direction: column;
      .upload-image-container {
        margin-top: 20vh;
      }
    }
    .progress {
      width: 500px;
      --progress-width: 500px;
      margin: 0 auto;
    }
    .image-container {
      --adapt-width: calc(calc(100vw - 420px));
      .image {
        --adapt-width: calc(calc(100vw - 420px));
      }
    }
  }
}

@media screen and (max-width: 1200px) {
  .image-upscale-left-content {
    .image-container {
      --adapt-width: calc(calc(100vw - 50px));
      .image {
        --adapt-width: calc(calc(100vw - 50px));
      }
    }
    .progress {
      width: 500px;
      --progress-width: 500px;
    }
  }
}
@media screen and (max-width: 867px) {
  .image-upscale-left-content {
    .progress {
      width: 80vw;
      --progress-width: 80vw;
    }
  }
}
